#include "ProcessModule.h"


ProcessModule::ProcessModule( const std::string& identifier, const address_t begin, const address_t end ) : ident(identifier), bounds_(begin, end)
{

}

ProcessModule::ProcessModule( const std::string& identifier, const MemoryBounds& boundarys ) :
ident(identifier), bounds_(boundarys)
{

}

const MemoryBounds& ProcessModule::bounds() const
{
	return bounds_;
}

const std::string& ProcessModule::identifier() const
{
	return ident;
}

const MemoryRegion ProcessModule::asRegion( MemoryReader& reader ) const
{
	return MemoryRegion(bounds_, reader);
}
